import React from 'react';
import { Typography } from 'antd';

const { Paragraph } = Typography;

class AxLabel extends React.Component<any> {
  constructor(props: any) {
    super(props);
    const value = props.axvalue;

    this.state = {
      value,
      axvalue: value,
    };
  }

  render() {
    const { value, children } = this.props;

    return (
      <div>
        <Paragraph style={{ marginBottom: 0 }}>
          {value}
          {children}
        </Paragraph>
      </div>
    );
  }
}

export default AxLabel;
